use axum::{extract::DefaultBodyLimit, Router};

mod device;
mod cargo;
mod product;
mod order;
mod firm;
mod adv;
mod adv_cfg;

pub fn register() -> Router {
    Router::new()
    .nest("/device", device::register())
    .nest("/cargo", cargo::register())
    .nest("/product", product::register())
    .nest("/order", order::register())
    .nest("/firm", firm::register())
    .nest("/adv", adv::register())
    .nest("/adv_cfg", adv_cfg::register())
    .layer(DefaultBodyLimit::max(5 * 1024 * 1024))
}



